package com.yunxi.dao.otd;

import com.yunxi.core.dao.BaseMapperPlus;
import com.yunxi.model.otd.OtdOrderCirMonth;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 月预测CIR Mapper 接口
 * </p>
 *
 * @author XUQI
 * @since 2019-10-15
 */
public interface OtdOrderCirMonthMapper extends BaseMapperPlus<OtdOrderCirMonth> {

    /**
     * CIR订单排程查询
     *
     * @param map 查询条件
     * @return List<Map < String, Object>>
     */
    List<Map<String, Object>> findCirOrderSchedule(Map<String, Object> map);

    int findCirOrderScheduleCount(Map<String, Object> map);

    /**
     * CIR计划分周查询
     *
     * @param map 查询条件
     * @return List<Map < String, Object>>
     */
    List<Map<String, Object>> findMonthCirWeekly(Map<String, Object> map);

    int findMonthCirWeeklyCount(Map<String, Object> map);

    /**
     * 根据年月删除CIR订单
     * @param yearMonths 年月
     */
    void deleteCirOrderByYearMonth(@Param("yearMonths") List<String> yearMonths);

}
